package com.yidont.douyinhelper

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.yidont.douyinhelper.ui.ConcernPage
import com.yidont.douyinhelper.ui.MainPage
import com.yidont.douyinhelper.ui.theme.DouYinHelperTheme

class MainActivity : ComponentActivity() {

    private var showType by mutableStateOf(-1)

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            DouYinHelperTheme {
                MainPage { showType = it }
                when (showType) {
                    0 -> ConcernPage { showType = -1 }
//                    1 -> ConcernPage()
//                    2 -> ConcernPage()
                }
            }
        }
    }

}